# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Contributor: Andy Weidenbaum <archbaum@gmail.com>

pkgname=python-jsonrpclib-pelix
pkgver=0.4.3.2
pkgrel=2
pkgdesc="A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax"
arch=(any)
depends=(python)
makedepends=(python-setuptools)
url="https://github.com/tcalmant/jsonrpclib"
license=('Apache')
source=(https://pypi.io/packages/source/j/jsonrpclib-pelix/jsonrpclib-pelix-$pkgver.tar.gz)
sha256sums=('e9e0b33efa8fa20d817dd78dfd9e4cdb3967c8a5d3cb5a783be1ee81c4a89c7c')

build() {
  cd jsonrpclib-pelix-$pkgver
  python setup.py build
}

package() {
  cd jsonrpclib-pelix-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}
